﻿
namespace LM.Tela.Desktop.Formularios
{
    using System.Windows.Forms;

    public class FormBase : Form
    {
        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // FormBase
            // 
            this.ClientSize = new System.Drawing.Size(284, 262);
            this.Name = "FormBase";
            this.Load += new System.EventHandler(this.FormBase_Load);
            this.ResumeLayout(false);

        }

        private void FormBase_Load( object sender, System.EventArgs e )
        {

        }

        protected void AdicioneEventEnterToTAB( Control componente )
        {
            componente.KeyDown += new KeyEventHandler( EventKeyDown );
        }

        private void EventKeyDown( object sender, KeyEventArgs e )
        {
            if ( e.KeyCode == Keys.Enter )
                SendKeys.Send( "{TAB}" );
        }
    }
}
